function objGroup(obj1, obj2) {
  obj1.next = obj2;
  obj2.prev = obj1;
  return {
    o1: obj1,
    o2: obj2
  }
}

let obj = objGroup({ name: 'lanpang' }, { name: 'obj2' });
console.log(obj);

Reflect.deleteProperty(obj, 'o1');
Reflect.deleteProperty(obj.o2, 'prev');

console.log(obj);